(f)" ;
$is_folder_marked = true ; //if true, folders are listed with the
//additional marker $folder_mark
$is_order_by_mod_date = false ;
$include_hidden_files = false ;
$body_style = "drkrlz" ; //
$link_style = $body_style ; //
$heading_style = $body_style ; //
echo "" ;
$dir = "." ;
$dir_full_path = realpath( $dir ) ;
// revert slashes if we're on Windows
$dir_full_path = str_replace("\\", "/",$dir_full_path );
$dir_name = substr($dir_full_path, strlen($htdocsdir));
echo "Index of " . $dir_name . "
" ;
?>
Name" ;
echo "Last Modified | " ;
echo "Size | " ;
?>
|
Parent Directory |
| - | |
$ent )
{
$filename = $arr['flat'][$key] ;
$additional_marker = "" ;
if (!$include_hidden_files && strpos($filename, ".") === 0)
array_push($avoided_files, $filename);
if(!in_array( $filename, $avoided_files ) )
{
$lastmod = date( "d-M-Y H:i", filectime( $filename )) ;
$size = filesize( $filename );
$filename = htmlspecialchars( $filename ) ;
if ( $is_folder_marked && is_dir( $filename ))
$additional_marker = $folder_mark;
echo ""
. $filename . $additional_marker . " | " . $lastmod
. " | " . " " . $size . " |
" ;
}
}
?>
|